package com.powernobug.servlet;

import com.powernobug.bean.vo.BaseRespVo;
import com.powernobug.bean.vo.data.EChartData;
import com.powernobug.service.StatService;
import com.powernobug.service.impl.StatServiceImpl;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

@WebServlet("/stat/*")
public class AdminStatServlet extends CommonServlet{

    StatService statService = new StatServiceImpl();

    public BaseRespVo user(HttpServletRequest req) throws IOException {
        EChartData data = statService.userStat();
        return BaseRespVo.okList(data);
    }
}
